<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <script src="../assets/flexible/flexible.debug.js"></script>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>名医馆</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/famous.css">
    <link rel="stylesheet" href="../assets/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="../assets/font/iconfont.css">
</head>

<body>
    <header class="header">
        <div class="iconfont left index">&#xe607;返回</div>
        <div class="center">名医馆</div>
        <div class="right"></div>
    </header>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="../images/88.jpg"></div>
            <div class="swiper-slide"><img src="../images/89.jpg"></div>
            <div class="swiper-slide"><img src="../images/90.jpg"></div>
            <div class="swiper-slide"><img src="../images/91.jpg"></div>
            <div class="swiper-slide"><img src="../images/92.jpg"></div>
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination"></div>
    </div>
    <div class="main">
        <script type="text/html" id="template">
            {{each str v}}
            <div class="status">
                <p><img src="{{v.p1}}"></p>
                <p><img src="{{v.p2}}"></p>
                <p><img src="{{v.p3}}"></p>
                <p><img src="{{v.p4}}"></p>
                <ul>
                    <li><img src="{{v.li1}}"></li>
                    <li><img src="{{v.li2}}"></li>
                    <li><img src="{{v.li3}}"></li>
                    <li><img src="{{v.li4}}"></li>
                    <li><img src="{{v.li5}}"></li>
                    <li><img src="{{v.li6}}"></li>
                    <li><img src="{{v.li7}}"></li>
                    <li><img src="{{v.li8}}"></li>
                    <li><img src="{{v.li9}}"></li>
                    <li><img src="{{v.li10}}"></li>
                </ul>
            </div>
            {{/each}}
        </script>
    </div>


    <script src="../assets/jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/index.js"></script>
    <script src="../assets/swiper/js/swiper.min.js"></script>
    <script src="../assets/artTemplate/template-web.js"></script>
    <script>
        jQuery(function ($) {
            $.ajax({
                type: "GET",
                url: "../json/famous.json",
                dataType: 'json',
                success: function (data) {
                    var arr = template('template', {
                        str: data
                    });
                    $('.main').html(arr);
                }
            })
        })
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            paginationClickable: true,
            loop: true,
            speed: 1000,
            autoplay: 1000
        });
        $('.index').click(function () {
            location.href = "../index.html"
        })
    </script>
</body>

</html>